package db.entity;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the polynomial database table.
 * 
 */
@Embeddable
public class PolynomialPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	private String armID;

	private String padLotID;

    public PolynomialPK() {
    }
	public String getArmID() {
		return this.armID;
	}
	public void setArmID(String armID) {
		this.armID = armID;
	}
	public String getPadLotID() {
		return this.padLotID;
	}
	public void setPadLotID(String padLotID) {
		this.padLotID = padLotID;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof PolynomialPK)) {
			return false;
		}
		PolynomialPK castOther = (PolynomialPK)other;
		return 
			this.armID.equals(castOther.armID)
			&& this.padLotID.equals(castOther.padLotID);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.armID.hashCode();
		hash = hash * prime + this.padLotID.hashCode();
		
		return hash;
    }
}